.login-form
  = form_for :session ,url:sessions_path ,remote:true do |f|
    .ui.form.basic.segment
      .field
        .ui.left.icon.large.input
          = f.text_field :email,placeholder:'邮箱'
          %i.mail.icon
      .field
        .ui.left.icon.large.input
          = f.password_field :password,placeholder: '密码'
          %i.lock.icon
      .field
        .ui.toggle.checkbox
          = f.check_box :remember
          = f.label :remember,'记住我'
        = link_to '忘记密码',"javascript:void(0)",class:'float-right reset_password'
      = f.submit '登录',class:'ui green fluid button',id:'login'
.ui.dimmer.modals.page.transition.hidden
  .small.ui.test.modal.transition
    %i.close.icon
    .content
      = form_tag password_resets_path,class:'ui form basic segment',:method => :post do
        .field
          = text_field_tag :email,nil,placeholder: '邮箱'
        = submit_tag '重置密码',class:'ui green fluid button'